package com.hmall.item.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hmall.item.pojo.Item;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ItemMapper extends BaseMapper<Item> {
    /**
     * 分页查询
     * @param page
     * @param size
     * @return
     */
    @Select("select * from tb_item where status=1 imit #ipage],#ipagesize]")
    List<Item> queryPage(Integer page, Integer size);
}
